import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Dome1 {
    public static void main(String[] args) throws IOException {
        File f = new File("./test.txt");
        //在当前文件夹下创建文件
        f.createNewFile();
        //使用outputStream写入数据,true表示在原来的文本上追加数据
        OutputStream outputStream = new FileOutputStream("./test.txt",true);
        outputStream.write(97);
        outputStream.write(98);
        outputStream.write(99);
    }
}
